<template>
	<view>
		<view class="container">
			<view class="detail">
				<image class="back_img" @click="goBack()" src="/static/tell_left.png" mode=""></image>
				<image :src="product.photo" mode=""></image>
			</view>
			<view class="box">
				<view class="box1">
					<view class="title">{{product.title}}</view>
					<view class="text">
						<view class="text_item">
							<view class="i_title">预估收益</view>
							<view class="i_red">{{product.shouyi}}元/3天</view>
						</view>
						<view class="text_item">
							<view class="i_title">最短托管时间</view>
							<view class="i_red">{{product.year}}年</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				product:[]
			}
		},
		onLoad(options) {
			this.goods_id = options.id;
			this.$http.getTuoguanGoodDetail({
			    id: this.goods_id
			}).then((result)=>{
			    this.product = result.data; 
			}).catch(err=>{
			    
			});
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	page{
		background: #F7FEFF;
	}
	.container {
		.detail{
			height: 702rpx;
			background: #FFFFFF;
			display: flex;
			align-items: center;
			justify-content: center;
			position: relative;
			.back_img{
				width: 42rpx;
				height: 47rpx;
				position: absolute;
				top: 30rpx;
				left: 28rpx;
				z-index: 99;
			}	
			image{
				width: 513rpx;
				height: 498rpx;
			}
		}
		.box{
			padding: 24rpx 32rpx;
			.box1{
				background: #FFFFFF;
				box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(141,191,252,0.5);
				border-radius: 24rpx 24rpx 24rpx 24rpx;
				padding: 23rpx 27rpx;
				.title{
					font-weight: 600;
					font-size: 28rpx;
					color: #3D3D3D;
					padding-bottom: 15rpx;
					border-bottom: 1.5px solid #D8D8D8;
				}
				.text{
					margin-top: 24rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					.text_item{
						.i_title{
							font-weight: 400;
							font-size: 24rpx;
							color: #999999;
						}
						.i_red{
							margin-top: 28rpx;
							font-weight: 600;
							font-size: 24rpx;
							color: #D30000;
						}
					}
					.text_item:nth-child(2){
						text-align: center;
					}
				}
			}
		}
		
		
		
		
		
		
		
		
		
		
	}
</style>